package com.wz.project.bas.basType.service.impl;

import com.wz.common.utils.text.Convert;
import com.wz.project.bas.basType.domain.BasType;
import com.wz.project.bas.basType.mapper.BasTypeMapper;
import com.wz.project.bas.basType.service.IBasTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类型表Service业务层处理
 * 
 * @author wz
 * @date 2022-02-11
 */
@Service
public class BasTypeServiceImpl implements IBasTypeService
{
    @Autowired
    private BasTypeMapper basTypeMapper;

    /**
     * 查询类型表
     * 
     * @param typeId 类型表ID
     * @return 类型表
     */
    @Override
    public BasType selectBasTypeById(String typeId)
    {
        return basTypeMapper.selectBasTypeById(typeId);
    }

    /**
     * 查询类型表列表
     * 
     * @param basType 类型表
     * @return 类型表
     */
    @Override
    public List<BasType> selectBasTypeList(BasType basType)
    {
        return basTypeMapper.selectBasTypeList(basType);
    }

    /**
     * 新增类型表
     * 
     * @param basType 类型表
     * @return 结果
     */
    @Override
    public int insertBasType(BasType basType)
    {
        return basTypeMapper.insertBasType(basType);
    }

    /**
     * 修改类型表
     * 
     * @param basType 类型表
     * @return 结果
     */
    @Override
    public int updateBasType(BasType basType)
    {
        return basTypeMapper.updateBasType(basType);
    }

    /**
     * 删除类型表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBasTypeByIds(String ids)
    {
        return basTypeMapper.deleteBasTypeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除类型表信息
     * 
     * @param typeId 类型表ID
     * @return 结果
     */
    @Override
    public int deleteBasTypeById(String typeId)
    {
        return basTypeMapper.deleteBasTypeById(typeId);
    }
}
